package com.zhouchj.elasticsearch.model.page;

import lombok.Data;

/**
 * @author zhouchj
 * @date 2023/7/21
 */
@Data
public class Tuple {

    private String name;

    private String code;

    private Integer count;

    private Tuple(String name, String code, Integer count) {
        this.name = name;
        this.code = code;
        this.count = count;
    }

    public static Tuple of(String name, String code, Integer count) {
        return new Tuple(name, code, count);
    }


}
